package cn.jawar.framework.cloud.demo.user.biz;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dongs
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Value("${spring.application.name}")
    private String value;

    @GetMapping
    public User getUser() {
        System.out.println("user copy");
        System.out.println("value = " + value);
        User user = new User();
        user.setAge(5);
        user.setName("董怡妹妹");
        return user;
    }


}
